chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
	
	switch(request.action)
	{
		case 'jQuery.fn':
			console.log('Context: Executing Script');
			
			var methods	= document.getElementById('extension-root').innerHTML;
			
			console.log('Context: Sending data to extension');
			
			sendResponse({
				data	: methods,
				success	: true
			});
			
			console.log('Context: Data sent');			
			break;
		default:
			sendResponse({
				data	: [],
				success	: false
			});
	}
});
